From 91edf9c398af4b87993ae4513bd66138626aee28 Mon Sep 17 00:00:00 2001 From: Moritz Oberhauser Date: Sat, 27 May 2017 13:20:35 +0200 Subject: [PATCH] Making the default toggle look clickable again The toggle should now look same same prior to the premade toggle changes. The brackets are not part of the link, but the text inbetween. The link has no href property, so the toggle action is still triggered. Bug: T166359 Change-Id: I38698cd66d380626728eae9b8a9da1e465b207a6 --- resources/src/jquery/jquery.makeCollapsible.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/src/jquery/jquery.makeCollapsible.js b/resources/src/jquery/jquery.makeCollapsible.js index ac4a3926ac..5ce9b1f9bc 100644 --- a/resources/src/jquery/jquery.makeCollapsible.js +++ b/resources/src/jquery/jquery.makeCollapsible.js @@ -262,7 +262,7 @@ // Default toggle link. Only build it when needed to avoid jQuery memory leaks (event data). buildDefaultToggleLink = function () { - return $( '' ) + return $( '' ) .text( collapseText ) .wrap( '' ).parent() .attr( { -- 2.20.1